//
//  MAMService.h
//  基金e讯
//
//  Created by imac on 14-2-18.
//  Copyright (c) 2014年 caibaocheng. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "AFNetworking.h"
#import "ServiceAPIClient.h"

@interface WebService : NSObject

+ (void)getPushList:(NSDictionary *)params
          WithBlock:(void (^)(id result, NSError *error))block;

+ (void)getUserMsgList:(NSDictionary *)params
             WithBlock:(void (^)(id result, NSError *error))block;


#pragma mark - News
//查询用户关注频道列表接口
+ (void)findUserMarkChannelList:(NSDictionary *)params
                      WithBlock:(void (^)(id result, NSError *error))block;

//用户创建分组接口
+ (void)createGroup:(NSDictionary *)params
          WithBlock:(void (^)(id result, NSError *error))block;

//分组追加频道
+ (void)addChannelToGroup:(NSDictionary *)params
                WithBlock:(void (^)(id result, NSError *error))block;


//根据分组id查询频道接口
+ (void)findGroupSubChannelList:(NSDictionary *)params
                      WithBlock:(void (^)(id result, NSError *error))block;

//删除分组
+ (void)deleteGroup:(NSDictionary *)params
          WithBlock:(void (^)(id result, NSError *error))block;

//获取文章列表接口
+ (void)findArticleList:(NSDictionary *)params
              WithBlock:(void (^)(id result, NSError *error))block;

//频道订阅
+ (void)addMarkChannel:(NSDictionary *)params
             WithBlock:(void (^)(id result, NSError *error))block;
//取消订阅频道
+ (void)deleteMarkChannel:(NSDictionary *)params
                WithBlock:(void (^)(id result, NSError *error))block;

//查询文章详情
+ (void)findArticleDetail:(NSDictionary *)params
                WithBlock:(void (^)(id result, NSError *error))block;

//查询文章评论列表
+ (void)findArticleCommentList:(NSDictionary *)params
                     WithBlock:(void (^)(id result, NSError *error))block;

//添加评论
+ (void)addComment:(NSDictionary *)params
         WithBlock:(void (^)(id result, NSError *error))block;

//文章点赞
+ (void)addArticleLike:(NSDictionary *)params
             WithBlock:(void (^)(id result, NSError *error))block;

//取消文章点赞
+ (void)cancelArticleLike:(NSDictionary *)params
                WithBlock:(void (^)(id result, NSError *error))block;

//评论点赞
+ (void)addCommentLike:(NSDictionary *)params
             WithBlock:(void (^)(id result, NSError *error))block;

//取消评论点赞
+ (void)cancelCommentLike:(NSDictionary *)params
                WithBlock:(void (^)(id result, NSError *error))block;

//文章收藏
+ (void)addArticleCollect:(NSDictionary *)params
                WithBlock:(void (^)(id result, NSError *error))block;

//取消文章收藏18
+ (void)cancelArticleCollect:(NSDictionary *)params
                   WithBlock:(void (^)(id result, NSError *error))block;

//获取个人文章收藏
+ (void)findArticleCollect:(NSDictionary *)params
                   WithBlock:(void (^)(id result, NSError *error))block;


//删除评论
+ (void)deletelArticlecomment:(NSDictionary *)params
                    WithBlock:(void (^)(id result, NSError *error))block;

#pragma mark - Channels
//获取频道分类
+ (void)findChannelCategoryList:(NSDictionary *)params
                      WithBlock:(void (^)(id result, NSError *error))block;

//查询频道列表接口
+ (void)findChannelList:(NSDictionary *)params
                      WithBlock:(void (^)(id result, NSError *error))block;

//根据名称搜索频道列表
+ (void)getChanelListByName:(NSDictionary *)params
                      WithBlock:(void (^)(id result, NSError *error))block;


#pragma mark - User Center

+ (void)saveUploadFile:(NSData *)fileData
              fileName:(NSString *)fileName
            WithParams:(NSDictionary *)params
            uploadPath:(NSString *)path
             WithBlock:(void (^)(id result, NSError *error))block;


//人员登录
+ (void)loginWithParams:(NSDictionary *)params
              WithBlock:(void (^)(id result, NSError *error))block;

//人员登出
+ (void)logoutWithParams:(NSDictionary *)params
               WithBlock:(void (^)(id result, NSError *error))block;

//检测注册账号
+ (void)checkUser:(NSDictionary *)params
        WithBlock:(void (^)(id result, NSError *error))block;

//人员注册
+ (void)registerWithParams:(NSDictionary *)params
                 WithBlock:(void (^)(id result, NSError *error))block;

//修改密码
+ (void)modifyPwd:(NSDictionary *)params
        WithBlock:(void (^)(id result, NSError *error))block;

//修改昵称
+ (void)modifyNickName:(NSDictionary *)params
             WithBlock:(void (^)(id result, NSError *error))block;

//修改个人资料
+ (void)modifyUserInfo:(NSDictionary *)params
             WithBlock:(void (^)(id result, NSError *error))block;

//根据经纬度获取地址
+ (void)getAddress:(NSDictionary *)params
         WithBlock:(void (^)(id result, NSError *error))block;


//意见反馈
+ (void)feedBack:(NSDictionary *)params
       WithBlock:(void (^)(id result, NSError *error))block;


@end
